package com.cictec.middleware.core.entity;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "t_session_task")
public class BusFileSession implements Serializable {
    @Column(name = "st_uuid")
    private String stUuid;

    /**
     * 短链接会话id
     */
    @Column(name = "session_id")
    private String sessionId;

    /**
     * 升级任务id
     */
    @Column(name = "task_id")
    private String taskId;

    /**
     * 备用
     */
    private String remark;

    /**
     * 设备id
     */
    private String devcode;

    private static final long serialVersionUID = 1L;

    /**
     * @return st_uuid
     */
    public String getStUuid() {
        return stUuid;
    }

    /**
     * @param stUuid
     */
    public void setStUuid(String stUuid) {
        this.stUuid = stUuid == null ? null : stUuid.trim();
    }

    /**
     * 获取短链接会话id
     *
     * @return session_id - 短链接会话id
     */
    public String getSessionId() {
        return sessionId;
    }

    /**
     * 设置短链接会话id
     *
     * @param sessionId 短链接会话id
     */
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId == null ? null : sessionId.trim();
    }

    /**
     * 获取升级任务id
     *
     * @return task_id - 升级任务id
     */
    public String getTaskId() {
        return taskId;
    }

    /**
     * 设置升级任务id
     *
     * @param taskId 升级任务id
     */
    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    /**
     * 获取备用
     *
     * @return remark - 备用
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置备用
     *
     * @param remark 备用
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * 获取设备id
     *
     * @return devcode - 设备id
     */
    public String getDevcode() {
        return devcode;
    }

    /**
     * 设置设备id
     *
     * @param devcode 设备id
     */
    public void setDevcode(String devcode) {
        this.devcode = devcode == null ? null : devcode.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", stUuid=").append(stUuid);
        sb.append(", sessionId=").append(sessionId);
        sb.append(", taskId=").append(taskId);
        sb.append(", remark=").append(remark);
        sb.append(", devcode=").append(devcode);
        sb.append("]");
        return sb.toString();
    }
}